class MoneysController < ApplicationController
  layout 'base.html', :only => [:show]
  before_filter :authorize
  
  def show
  end
  
  def draw
    @how_much_can_be_drawn = current_user.how_much_can_be_drawn
    current_user.draw_money!
  end
  
  def draw_gift
    gift = Info.find(params[:id])
    Feed::MoneyGift.create!(
      :user_id => current_user.id,
      :info_id => gift.id
    ) if gift.money_purpose.gift? 
  end
  
  def how_to_earn
  end
  
  def earned
  end
  
  def feeds
  end
  
end
